package com.demo.controller;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.demo.entity.Orders;
import com.demo.service.IOrdersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 订单表; 前端控制器
 * </p>
 *
 * @author author
 * @since 2023-04-27
 */
@RestController
@RequestMapping("/orders")
public class OrdersController {

    @PostMapping("selectAllByPage")
    public IPage<Orders> selectAllByPage(@RequestParam(defaultValue = "1") Integer pageNum ,
                                         @RequestParam(defaultValue = "5")Integer pageSize) {
        /*IPage<Orders> ordersIPage = ordersService.selectAllByPage(pageNum , pageSize);*/
        /*return ordersIPage ;*/
        return  null;
    }


}
